package views
{
	import flash.events.MouseEvent;
	
	import wx.controls.ActionBar;
	import wx.controls.Button;
	import wx.controls.Checkbox;
	import wx.controls.Label;
	import wx.controls.Radio;
	import wx.controls.RadioGroup;
	import wx.controls.Slider;
	import wx.controls.TextInput;
	import wx.controls.View;
	import wx.layout.HorizontalLayout;
	import wx.layout.VerticalLayout;
	
	public class FormTest extends View
	{
		public function FormTest()
		{
			super();
			
			var head:ActionBar = new ActionBar("主页");
			actionBar = head;
			
			var vl:VerticalLayout = new VerticalLayout(20);			
			vl.y = 10;
			vl.x = 10;
			addChild(vl);
			
			var label:Label = new Label("测试");
			vl.addChild(label);
			
			var input:TextInput = new TextInput();
			input.text = "dsafsdf";
			//input.enable = false;
			input.width = 300;
			vl.addChild(input);
			
			var hl:HorizontalLayout = new HorizontalLayout(10);			
			vl.addChild(hl);
			
			var group:RadioGroup = new RadioGroup();			
			var radio:Radio = new Radio("测试11",group);			
			radio.selected = true;
			hl.addChild(radio);
			
			var radio2:Radio = new Radio("测试22",group);
			hl.addChild(radio2);
			
			
			var hl2:HorizontalLayout = new HorizontalLayout(10);
			vl.addChild(hl2);
			
			var checkbox:Checkbox = new Checkbox("测试33");
			checkbox.selected = true;
			hl2.addChild(checkbox);
			
			var checkbox2:Checkbox = new Checkbox("测试44");
			hl2.addChild(checkbox2);			
			
			var slider:Slider = new Slider();
			slider.value = 50;
			vl.addChild(slider);
			
			var btn:Button = new Button("测试");
			btn.width = 126;
			//btn.icon = new _icon;
			//btn.enable = false;
			btn.addEventListener(MouseEvent.CLICK,function(e:MouseEvent):void{
				
			});			
			vl.addChild(btn);
			
		}
		
		
	}
}